package com.cloudschool.media.service;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/3/14 18:05
 */
@Component
@Slf4j
public class testjob {
    /**
     * 1、简单任务示例（Bean模式）
     */
    @XxlJob("testjob")
    public void testJob() throws Exception {
        log.info("开始执行.....");

    }
}
